package com.suliao.home.serviceImpl.industry;

import com.suliao.home.entity.industry.ExhibitionBannerDO;
import com.suliao.home.mapper.industry.ExhibitionBannerMapper;
import com.suliao.home.service.industry.ExhibitionBannerService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.apache.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

/**
 * @author： M1nG-CodeGenerator
 * @since： 2020-12-14 16:10:11
 * @description： 展厅banner 服务实现类
 * @version： 1.0
 */
@Service
public class ExhibitionBannerServiceImpl extends ServiceImpl<ExhibitionBannerMapper, ExhibitionBannerDO> implements ExhibitionBannerService {

    @Autowired
    private ExhibitionBannerMapper exhibitionBannerMapper;


    /**
     * 通过公司id和banner位置获取展厅banner
     * @param companyId
     * @param postion
     * @return
     */
    @Override
    public List<ExhibitionBannerDO> getExhibitionHallbanner(Integer companyId, String postion) {
        return exhibitionBannerMapper.getExhibitionHallbanner(companyId,postion);
    }

}
